import { consts } from "@/module-00-codebase/pkg-00-const";
import { Ei } from "@/module-00-codebase/pkg-01-container";
import { BaseElmt } from "@/module-00-codebase/pkg-03-abstract";
import * as jsx from "react/jsx-dev-runtime";

export class Renderer {
  public async render(content: any, container: BaseElmt<any>) {
    container.setAppendence(content);
  }
}
export const initializing = async () => {
  const jsxDEV = (jsx as any).jsxDEV;
  (jsx as any).jsxDEV = function (this: any) {
    if (arguments[0] === undefined) {
      console.log(`Undefined Component: ${Array.from(arguments)}`);
      return jsxDEV.apply(this, [Ei.Unimplement, { params: ["Undefined Component"] }, ...Array.from(arguments).slice(2)]);
    } else {
      return jsxDEV.apply(this, Array.from(arguments));
    }
  };
};
export const order = () => consts.firstOrder;
